from sqlalchemy.orm import Session
import json
from typing import List
from app.entity import Work
from utils.request import PageInfo
from utils.tree import TreeUtil

class WorkModel:    
    @classmethod
    def get_image_list(cls, db: Session, where):
        rows  = db.query(Work).filter(Work.work_cat==where['cat_id']).order_by(Work.work_id).all()
        return rows
